Take cursor width into account when calculating the area to be
authorMatthias Clasen <mclasen@redhat.com>
Tue, 7 Mar 2006 02:05:02 +0000 (02:05 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 7 Mar 2006 02:05:02 +0000 (02:05 +0000)
2006-03-06  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtktextview.c (text_window_invalidate_cursors): Take
cursor width into account when calculating the area to
be invalidated.  (#333377, #323401 Steve Frécinaux)

ChangeLog
ChangeLog.pre-2-10
gtk/gtktextview.c

index 22b99c4abcb9b596945ae0006922f6f76df98739..93f5f7e8b2033e7bc3d6ec403d8ef2a49b61c640 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2006-03-06  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtktextview.c (text_window_invalidate_cursors): Take
+       cursor width into account when calculating the area to 
+       be invalidated.  (#333377, #323401 Steve Frécinaux)
+
        * gtk/gtkmain.c (post_parse_hook): Set error when returning
        FALSE.  (#333268, Paolo Maggi, Christian Persch)
        
index 22b99c4abcb9b596945ae0006922f6f76df98739..93f5f7e8b2033e7bc3d6ec403d8ef2a49b61c640 100644 (file)
@@ -1,5 +1,9 @@
 2006-03-06  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtktextview.c (text_window_invalidate_cursors): Take
+       cursor width into account when calculating the area to 
+       be invalidated.  (#333377, #323401 Steve Frécinaux)
+
        * gtk/gtkmain.c (post_parse_hook): Set error when returning
        FALSE.  (#333268, Paolo Maggi, Christian Persch)
        
index 922247aa3362c989e868753b8b62b539c9c5b410..8b4bec751234e1ecdc7466821275fb7a5a9d372b 100644 (file)
@@ -7479,10 +7479,12 @@ text_window_invalidate_cursors (GtkTextWindow *win)
   gtk_widget_style_get (win->widget,
                         "cursor-aspect-ratio", &cursor_aspect_ratio,
                         NULL);
-
+  
   stem_width = strong.height * cursor_aspect_ratio + 1;
   arrow_width = stem_width + 1;
 
+  strong.width = stem_width;
+
   /* round up to the next even number */
   if (stem_width & 1)
     stem_width++;
@@ -7503,6 +7505,8 @@ text_window_invalidate_cursors (GtkTextWindow *win)
       stem_width = weak.height * cursor_aspect_ratio + 1;
       arrow_width = stem_width + 1;
 
+      weak.width = stem_width;
+
       /* round up to the next even number */
       if (stem_width & 1)
         stem_width++;